<template>
  <div>
    <div id="map">
      <el-amap
        vid="amapDemo"
        :zoom="10"
        :center="[116.398157, 39.9081]"
      ></el-amap>
    </div>
    <div>
      <el-alert
        title="加载成功"
        type="success"
        description="目前地图中心：中国.北京市(经纬度：[116.398157, 39.908100])"
        show-icon
      >
      </el-alert>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  computed: {},
  methods: {},
  created() {},
  mounted() {},
};
</script>
<style scoped>
#map {
  height: calc(100vh - 140px);
}
</style>